import java.util.*;


/**
 * This class holds the months in a calendar
 * 
 * @author Matthew Edwards 
 * @version 3-5-11
 */


public class AppointmentCalendar {
    
    
    
    private ArrayList<AppointmentMonth> months = new ArrayList<AppointmentMonth>();

    
    public AppointmentCalendar(ArrayList<AppointmentMonth> months){
        
        this.months = months;
        
    }
    
    /**Adds a month to the database
     * 
     * @param input
     *     The day to be input
     * @param month
     *     The number of the month to be put in
     */
    public void add(AppointmentMonth input, int index)
    {
        months.add(index, input);
    }
    
    /**Deletes a month at it's value
     * 
     * @param value
     *    The value that determines which month is deleted
     */
    public void delete(int value)
    {
       months.remove(value);
    }
    
    /**Gets the months inside the calendar
     * 
     * @return
     *    the months in the calendar
     */
    public ArrayList<AppointmentMonth> getMonths()
    {
        return months;
        
    }
    
    
}

